<template>
  <div id="use">

    <h1>{{ msg }}</h1>
    <h2>我是use组件</h2>

    <div class="user">


      <div class="left">
        <ul>
          <li>
            <router-link to="/user/userAdd"> 增加用户</router-link>
          </li>


          <li>
            <router-link to="/user/userList"> 用户列表</router-link>
          </li>
        </ul>



      </div>

      <div class="right">
        内容
        <router-view></router-view>
      </div>


    </div>

  </div>
</template>



<script>
export default {
  data() {
    return {
      msg: "use组件"
    };
  },
  methods: {},
  mounted() {
    console.log("use组件渲染完毕");
  }
};
</script>

<style lang="scss" scoped>
.user {
  display: flex;

  .left {
    width: 200px;

    min-height: 400px;

    border-right: 1px solid #eee;

    li {
      line-height: 2;
    }
  }

  .right {
    flex: 1;
  }
}
</style>